# -*- coding: utf-8 -*-

"""
 (c) 2023 - Copyright CTyunOS Inc

 Authors:
   youyifeng <youyf2@chinatelecom.cn>

"""

from .base import DBModel
from sqlalchemy import Column
from sqlalchemy import Text
from sqlalchemy import Integer
from sqlalchemy import DateTime
import datetime


class CVELOG(DBModel):
    __tablename__ = 'CVELOG'
    id = Column("id", Integer, primary_key=True)
    code = Column("code", Integer)
    msg = Column("msg", Text)
    totalCount = Column('totalCount', Integer)
    cveDatabaseList = Column("cveDatabaseList", Text)
    created_at = Column("created_at", DateTime, default=datetime.datetime.now)
    add = Column("add", Integer, default=0)
    delete = Column("delete", Integer, default=0)
    modify = Column("modify", Integer, default=0)


class SALOG(DBModel):
    __tablename__ = 'SALOG'
    id = Column("id", Integer, primary_key=True)
    code = Column("code", Integer)
    msg = Column("msg", Text)
    totalCount = Column('totalCount', Integer)
    securityNoticeList = Column("securityNoticeList", Text)
    created_at = Column("created_at", DateTime, default=datetime.datetime.now)
    add = Column("add", Integer, default=0)
    delete = Column("delete", Integer, default=0)
    modify = Column("modify", Integer, default=0)
